package org.dromara.system.domain.bo;

import org.dromara.system.domain.YzlScheduleFormation;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 计划编制业务对象 yzl_schedule_formation
 *
 * @author wfy
 * @date 2025-09-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = YzlScheduleFormation.class, reverseConvertGenerate = false)
public class YzlScheduleFormationBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 编制名称
     */
    @NotBlank(message = "编制名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String projectName;

    /**
     * 计划名称
     */
    @NotBlank(message = "计划名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String planName;

    /**
     * 计划年份
     */
    private Date planDate;

    /**
     * 是否主计划 0不是 1是
     */
    @NotBlank(message = "是否主计划 0不是 1是不能为空", groups = { AddGroup.class, EditGroup.class })
    private String masterPlan;

    /**
     * 附件
     */
    private String formationFiles;

    /**
     * 状态(0未启用 1已启用)
     */
    @NotBlank(message = "状态(0未启用 1已启用)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String formationStatus;

    /**
     * 计划开始时间
     */
    @NotNull(message = "计划开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startDate;

    /**
     * 计划结束时间
     */
    @NotNull(message = "计划结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endDate;

    /**
     * 总体完成百分比
     */
    private Float completion;

    /**
     * 版本号
     */
    private String version;


}
